<div class="navbar navbar-inverse">
	<div class="navbar-inner">
    <div class="container">
        <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
     
          <!-- Be sure to leave the brand out there if you want it shown -->
      <a class="brand" href="<?php echo CHtml::encode(Yii::app()->baseUrl);?>/"><?php echo CHtml::encode(Yii::app()->name);?></a>
          <div class="nav-collapse">
			<?php $this->widget('zii.widgets.CMenu',array(
                    'htmlOptions'=>array('class'=>'pull-right nav'),
                    'submenuHtmlOptions'=>array('class'=>'dropdown-menu'),
					'itemCssClass'=>'item-test',
                    'encodeLabel'=>false,
                    'items'=>array(
			array(
				'label'=>yii::t('admin/manage','Reception'), 
                'url'=>yii::app()->homeUrl),
            array(
				'label'=>'Login', 
				'url'=>array('/site/login'), 
				'visible'=>Yii::app()->user->isGuest
			),
                        array(
				'label'=>'Logout ('.Yii::app()->user->name.')', 
				'url'=>array('/site/logout'), 
				'visible'=>!Yii::app()->user->isGuest
			),
                    ),
                )); ?>
          </div><!-- nav-collapse -->
     </div><!-- container -->
   </div><!-- navbar-inner -->
</div><!-- navbar navbar-inverse navbar-fixed-top -->

